package com.wanqing.community.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;



/**
 * 系统中使用的常量
 */
public class KeyConstant {
	
	
	
	public static final String FAIL = "FAIL";//失败
	
	public static final String SUCCESS = "SUCCESS";//成功
	
	public static final String TIMEOUT = "TIMEOUT";//超时
	
	public static final String EXIST = "EXIST";//已存在
	
	public static final String EMPTY = "EMPTY";//空
	
	public static final String ERRORS = "ERRORS";//错误
	
	public static final String NOTEXIST = "NOTEXIST";//不存在	
	
	public static final String USER_SESSION = "admin";
	
	public static final String OPERATION_ADD = "10";
	
	public static final String OPERATION_DEL = "20";
	
	public static final String OPERATION_UPDATE = "30";
	
	public static final String LEVELS_001 = "001";
	public static final String LEVELS_002 = "002";
	public static final String LEVELS_003 = "003";
	public static final String LEVELS_004 = "004";
	
	public static final String USER_TYPE_002 = "002";
	public static final String USER_TYPE_000 = "000";
	public static final String USER_TYPE_001 = "001";
	
	public static final String PERSON_TYPE_ADD = "ADD";
	public static final String PERSON_TYPE_UPDATE = "UPDATE";
	public static final String PERSON_TYPE_OUT = "OUT";
	
	public static final String FLOW_1 = "002";//市分区经理
	
	public static final String FLOW_2 = "003";//市人力
	
	public static final String EXCEPTION_PAGE = "exception";//异常页面
	
	public static final String EXCEPTIONS = "exceptions";//在异常页面显示的信息
	
	public static List<Map<String, String>> icards = new ArrayList<Map<String,String>>();
	public static List<Map<String, String>> networkrates = new ArrayList<Map<String,String>>();
	public static List<Map<String, String>> chargemodes = new ArrayList<Map<String,String>>();
	public static List<Map<String, String>> benifitpackges = new ArrayList<Map<String,String>>();
	public static List<Map<String, String>> debugcosts = new ArrayList<Map<String,String>>();
	public static List<Map<String, String>> equipmentdeposits = new ArrayList<Map<String,String>>();
	
	public static Map<String, String> cityMap = new HashMap<String, String>();
	
	public static HashMap<String, String> mapLevels = new HashMap<String, String>();
	static{
		mapLevels.put("001", "见习社区经理");
		mapLevels.put("002", "正式社区经理");
		mapLevels.put("003", "社区主管");
		mapLevels.put("004", "区域经理");		
	}
	
	public static HashMap<String, String> mapLevelNames = new HashMap<String, String>();
	static{
		mapLevelNames.put("见习社区经理", "001");
		mapLevelNames.put("正式社区经理", "002");
		mapLevelNames.put("社区主管", "003");
		mapLevelNames.put("区域经理", "004");		
	}
	
	public static final String FUNC_MENU_BUISS = "funbuiss";
	
	public static final String FUNC_MENU_FUNTREE = "funtree";
	
	public static final String LIST_MAIN_MENU = "listMainMenu";

	public static final Integer PAGESIZE=20;
	
}
